-- GENERATED SPELL FOR [Otto] --


function spell0_2599(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2599', 2270, 1)
end

function spell1_2599(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2599', 5295, 1)
end

function Sorts_2599(pUnit, Event)
local choix_sorts_2599 = math.random(0, 1)
if choix_sorts_2599 == 0 then
pUnit:RegisterEvent('spell0_2599', 1, 1)
end
if choix_sorts_2599 == 1 then
pUnit:RegisterEvent('spell1_2599', 1, 1)
end
end

function mob2599_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2599', math.random(1500, 3000), 1)
end

function mob2599_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2599_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2599_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2599, 1, 'mob2599_Action')
RegisterUnitEvent(2599, 2, 'mob2599_Leave')
RegisterUnitEvent(2599, 3, 'mob2599_Kill')
RegisterUnitEvent(2599, 4, 'mob2599_Die')
